﻿using OpenCube.Model.Primitives;
using OpenCube.Model.Primitives.Converters;
using OpenCube.Nbt.Mapping.Attributes;

namespace OpenCube.Model
{
	public class EntityDat
	{
		/// <summary>
		/// Gets or sets the Id of the entity, unless the entity is a player.
		/// </summary>
		[NbtName("id")]
		public string Id { get; set; }

		[NbtName("Pos")]
		[NbtConverter(typeof(CoordinatesConverter))]
		public Coordinates3<double> Position { get; set; }
	}

	public sealed class PlayerDat
		: EntityDat
	{
	}
}